package utils;

import java.util.ArrayList;
import java.util.List;

public class Page {
        private int totalPage;
        private int pageSize=10;
        private int currentPage;
        private int getTotalPage;
//        List<T>list=new ArrayList<T>(0);


    public int getTotalPage() {
        return totalPage % pageSize == 0 ? totalPage / pageSize : totalPage / pageSize + 1   ;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getGetTotalPage() {
        return getTotalPage;
    }

    public void setGetTotalPage(int getTotalPage) {
        this.getTotalPage = getTotalPage;
    }
}
